<template>
  <div>
    <el-table :data="tableData" class="container">
      <el-row :gutter="20" type="flex" class="row-bg" justify="center">
        <el-col :span="3">
            <div class="grid-content bg-purple">
          <el-table-column :span="3"  prop="photos">
            <template v-slot="{ row }">
              <img style="width: 120px" :src="row.photos[0]" alt="" />
            </template>
          </el-table-column>
            </div>
        </el-col>
        <el-col :span="8"><div class="grid-content bg-purple">
          <el-table-column label="介绍" prop="desc" />
          </div></el-col>
      </el-row>
    </el-table>
  </div>
</template>

<script>
import {getUserList} from '@/api/user'
export default {
data(){
return{
  tableData: [],
}
},
methods:{
},
 async created() {
    const res = await getUserList({
      _limit: 2,
      _start: 0,
    });
    console.log(22, res);
    this.tableData = res.data;
    console.log(23, res.data);
  },
}
</script>

<style>
.container {
  width: 1240px;
  margin: 15px auto;
}
</style>